//
//  WBDemoViewController.swift
//  XtWeiBo
//
//  Created by 徐腾 on 2017/7/19.
//  Copyright © 2017年 徐腾. All rights reserved.
//

import UIKit

class WBDemoViewController: WBBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // 设置title
        title = "第 \(navigationController?.childViewControllers.count ?? 0) 个"
    }
    
    func nextVC() {
        
        let vc = WBDemoViewController()
        
        navigationController?.pushViewController(vc, animated: true)
        
    }

}

extension WBDemoViewController {
    
    override func setupTableView() {
        super.setupTableView()
        
        // 自定义右边的tabBarItem
        navItem.rightBarButtonItem = UIBarButtonItem(title: "下一个", target: self, action: #selector(nextVC))
    }
    
}

